package org.benetech.reader;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class BenetechReaderActivity extends Activity {
   /** Called when the activity is first created. */
   public static String searchStr;

   @Override
   public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.mainui);
      Button b = (Button) findViewById(R.id.button1);
      b.setOnClickListener(new View.OnClickListener() {

         @Override
         public void onClick(View v) {
            // TODO Auto-generated method stub
            EditText e = (EditText) findViewById(R.id.editText1);
            searchStr = e.getText().toString();
            startActivity(new Intent("org.benetech.reader.ResultListActivity"));
         }
      });

   }
}
